#*************** Spring Boot Related Configurations ***************#
### Default Nacos path:
nacos.home=${NACOS_HOME:/opt/bitnami/nacos}
### Default web context path:
server.servlet.contextPath=${SERVER_SERVLET_CONTEXTPATH:/nacos}

### Include message field
server.error.include-message=${SERVER_ERROR_INCLUDE-MESSAGE:ALWAYS}

### Default web server port:
server.port=${SERVER_PORT:8848}

### open nacos default console ui
# nacos.console.ui.enabled=${NACOS_CONSOLE_UI_ENABLED:true}

### 是否在单机模式
nacos.standalone=${NACOS_STANDALONE:false}

#*************** Network Related Configurations ***************#
### If prefer hostname over ip for Nacos server addresses in cluster.conf:
# nacos.inetutils.prefer-hostname-over-ip=${NACOS_INETUTILS_PREFER-HOSTNAME-OVER-IP:false}

### Specify local server's IP:
# nacos.inetutils.ip-address=${NACOS_INETUTILS_ADDRESS:ip}

#*************** Config Module Related Configurations ***************#
### If use MySQL as datasource:
# spring.sql.init.platform=${SPRING_SQL_INIT_PLATFORM:mysql}

### Count of DB:
# db.num=${DB_NUM:1}

### Connect URL of DB:
# db.url.0=jdbc:mysql://${NACOS_MYSQL_HOST}:${NACOS_MYSQL_PORT:3306}/${NACOS_MYSQL_NAME:nacos}?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
# db.user.0=${NACOS_MYSQL_USER:nacos}
# db.password.0=${NACOS_MYSQL_PASSWORD:nacos}

### Connection pool configuration: hikariCP
db.pool.config.connectionTimeout=${DB_POOL_CONFIG_CONNECTIONTIMEOUT:30000}
db.pool.config.validationTimeout=${DB_POOL_CONFIG_VALIDATIONTIMEOUT:10000}
db.pool.config.maximumPoolSize=${DB_POOL_CONFIG_MAXIMUMPOOLSIZE:20}
db.pool.config.minimumIdle=${DB_POOL_CONFIG_MINIMUMIDLE:2}

### the maximum retry times for push
nacos.config.push.maxRetryTime=${NACOS_CONFIG_PUSH_MAXRETRYTIME:50}

#*************** Naming Module Related Configurations ***************#
### If enable data warmup. If set to false, the server would accept request without local data preparation:
# nacos.naming.data.warmup=${NACOS_NAMING_DATA_WARMUP:true}

### If enable the instance auto expiration, kind like of health check of instance:
# nacos.naming.expireInstance=${NACOS_NAMING_EXPIREINSTANCE:true}

### The interval to clean empty service, unit: milliseconds.
# nacos.naming.clean.empty-service.interval=${NACOS_NAMING_CLEAN_EMPTY-SERVICE_INTERVAL:60000}

### The expired time to clean empty service, unit: milliseconds.
# nacos.naming.clean.empty-service.expired-time=${NACOS_NAMING_CLEAN_EMPTY-SERVICE_EXPIRED-TIME:60000}

### The interval to clean expired metadata, unit: milliseconds.
# nacos.naming.clean.expired-metadata.interval=${NACOS_NAMING_CLEAN_EXPIRED-METADATA_INTERVAL:5000}

### The expired time to clean metadata, unit: milliseconds.
# nacos.naming.clean.expired-metadata.expired-time=${NACOS_NAMING_CLEAN_EXPIRED-METADATA_EXPIRED-TIME:60000}

### The delay time before push task to execute from service changed, unit: milliseconds.
# nacos.naming.push.pushTaskDelay=${NACOS_NAMING_PUSH_PUSHTASKDELAY:500}

### The timeout for push task execute, unit: milliseconds.
# nacos.naming.push.pushTaskTimeout=${NACOS_NAMING_PUSH_PUSHTASKTIMEOUT:5000}

### The delay time for retrying failed push task, unit: milliseconds.
# nacos.naming.push.pushTaskRetryDelay=${NACOS_NAMING_PUSH_PUSHTASKRETRYDELAY:1000}

### The expired time for inactive client, unit: milliseconds.
# nacos.naming.client.expired.time=${NACOS_NAMING_CLIENT_EXPIRED_TIME:180000}

#*************** CMDB Module Related Configurations ***************#
### The interval to dump external CMDB in seconds:
# nacos.cmdb.dumpTaskInterval=${NACOS_CMDB_DUMPTASKINTERVAL:3600}

### The interval of polling data change event in seconds:
# nacos.cmdb.eventTaskInterval=${NACOS_CMDB_EVENTTASKINTERVAL:10}

### The interval of loading labels in seconds:
# nacos.cmdb.labelTaskInterval=${NACOS_CMDB_LABELTASKINTERVAL:300}

### If turn on data loading task:
# nacos.cmdb.loadDataAtStart=${NACOS_CMDB_LOADDATAATSTART:false}

#***********Metrics for tomcat **************************#
server.tomcat.mbeanregistry.enabled=${SERVER_TOMCAT_MBEANREGISTRY_ENABLED:true}

#***********Expose prometheus and health **************************#
# management.endpoints.web.exposure.include=${MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE:prometheus,health}

### Metrics for elastic search
management.metrics.export.elastic.enabled=${MANAGEMENT_METRICS_EXPORT_ELASTIC_ENABLED:false}
# management.metrics.export.elastic.host=${MANAGEMENT_METRICS_EXPORT_ELASTIC_HOST:http://localhost:9200}

### Metrics for influx
management.metrics.export.influx.enabled=${MANAGEMENT_METRICS_EXPORT_INFLUX_ENABLED:false

#*************** Access Log Related Configurations ***************#
### If turn on the access log:
server.tomcat.accesslog.enabled=${SERVER_TOMCAT_ACCESSLOG_ENABLED:true}

### file name pattern, one file per hour
server.tomcat.accesslog.rotate=${SERVER_TOMCAT_ACCESSLOG_ROTATE:true}
server.tomcat.accesslog.file-date-format=.yyyy-MM-dd-HH
### The access log pattern:
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i

### The directory of access log:
server.tomcat.basedir=file:.

#*************** Access Control Related Configurations ***************#
### If enable spring security, this option is deprecated in 1.2.0:
spring.security.enabled=${SPRING_SECURITY_ENABLED:false}

### The ignore urls of auth
nacos.security.ignore.urls=${NACOS_SECURITY_IGNORE_URLS:/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**}

### If turn on auth system:
### 开启鉴权
nacos.core.auth.enabled=${NACOS_CORE_AUTH_ENABLED:true}

### Since 1.4.1, Turn on/off white auth for user-agent: nacos-server, only for upgrade from old version.
nacos.core.auth.enable.userAgentAuthWhite=${NACOS_CORE_AUTH_ENABLE_USERAGENTAUTHWHITE:false}

### The two properties is the white list for auth and used by identity the request from other server.
nacos.core.auth.server.identity.key=${NACOS_CORE_AUTH_SERVER_IDENTITY_KEY:nacos}
nacos.core.auth.server.identity.value=${NACOS_CORE_AUTH_SERVER_IDENTITY_VALUE:nacos}

### Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.
nacos.core.auth.caching.enabled=${NACOS_CORE_AUTH_CACHING_ENABLED:true}

### The auth system to use, currently only 'nacos' and 'ldap' is supported:
nacos.core.auth.system.type=${NACOS_CORE_AUTH_SYSTEM_TYPE:nacos}

### worked when nacos.core.auth.system.type=:nacos
### The token expiration in seconds:
nacos.core.auth.plugin.nacos.token.cache.enable=${NACOS_CORE_AUTH_PLUGIN_NACOS_TOKEN_CACHE_ENABLE:false}
nacos.core.auth.plugin.nacos.token.expire.seconds=${NACOS_CORE_AUTH_PLUGIN_NACOS_TOKEN_EXPIRE_SECONDS:18000}
### The default token (Base64 String):
nacos.core.auth.plugin.nacos.token.secret.key=${NACOS_CORE_AUTH_PLUGIN_NACOS_TOKEN_SECRET_KEY:}

#*************** Control Plugin Related Configurations ***************#
### plugin type
# nacos.plugin.control.manager.type=${NACOS_PLUGIN_CONTROL_MANAGER_TYPE:nacos

### local control rule storage dir, default ${nacos.home}/data/connection and ${nacos.home}/data/tps
# nacos.plugin.control.rule.local.basedir=${NACOS_HOME}

### external control rule storage type, if exist
# nacos.plugin.control.rule.external.storage=${NACOS_PLUGIN_CONTROL_RULE_EXTERNAL_STORAGE:}

#*************** Config Change Plugin Related Configurations ***************#
### webhook
# nacos.core.config.plugin.webhook.enabled=${NACOS_CORE_CONFIG_PLUGIN_WEBHOOK_ENABLED:false

### whitelist
# nacos.core.config.plugin.whitelist.enabled=${NACOS_CORE_CONFIG_PLUGIN_WHITELIST_ENABLED:false}

#*************** Istio Related Configurations ***************#
### If turn on the MCP server:
nacos.istio.mcp.server.enabled=${NACOS_ISTIO_MCP_SERVER_ENABLED:false}

#*************** Core Related Configurations ***************#
### set the WorkerID manually
# nacos.core.snowflake.worker-id=${NACOS_CORE_SNOWFLAKE_WORKER-ID:}

### Member-MetaData
# nacos.core.member.meta.site=${NACOS_CORE_MEMBER_META_SITE:}
# nacos.core.member.meta.adweight=${NACOS_CORE_MEMBER_META_ADWEIGHT:}
# nacos.core.member.meta.weight=${NACOS_CORE_MEMBER_META_WEIGHT:}

### MemberLookup
### Addressing pattern category, If set, the priority is highest
# nacos.core.member.lookup.type=${NACOS_CORE_MEMBER_LOOKUP_TYPE:[file,address-server]}

### Set the cluster list with a configuration file or command-line argument
# nacos.member.list=${NACOS_MEMBER_LIST:192.168.16.101:8847?raft_port=8807,192.168.16.101?raft_port=8808,192.168.16.101:8849?raft_port=8809}

### for AddressServerMemberLookup
### Maximum number of retries to query the address server upon initialization
# nacos.core.address-server.retry=${NACOS_CORE_ADDRESS-SERVER_RETRY:5}

### Server domain name address of [address-server] mode
# address.server.domain=${ADDRESS_SERVER_DOMAIN:jmenv.tbsite.net}

### Server port of [address-server] mode
# address.server.port=${ADDRESS_SERVER_PORT:8080}

### Request address of [address-server] mode
# address.server.url=${ADDRESS_SERVER_URL:/nacos/serverlist}

#*************** JRaft Related Configurations ***************#
### Sets the Raft cluster election timeout, default value is 5 second
# nacos.core.protocol.raft.data.election_timeout_ms=${NACOS_CORE_PROTOCOL_RAFT_DATA_ELECTION_TIMEOUT_MS:5000}

### Sets the amount of time the Raft snapshot will execute periodically, default is 30 minute
# nacos.core.protocol.raft.data.snapshot_interval_secs=${NACOS_CORE_PROTOCOL_RAFT_DATA_SNAPSHOT_INTERVAL_SECS:30}

### raft internal worker threads
# nacos.core.protocol.raft.data.core_thread_num=${NACOS_CORE_PROTOCOL_RAFT_DATA_CORE_THREAD_NUM:8}

### Number of threads required for raft business request processing
# nacos.core.protocol.raft.data.cli_service_thread_num=${NACOS_CORE_PROTOCOL_RAFT_DATA_CLI_SERVICE_THREAD_NUM:4}

### raft linear read strategy. Safe linear reads are used by default, that is, the Leader tenure is confirmed by heartbeat
# nacos.core.protocol.raft.data.read_index_type=${NACOS_CORE_PROTOCOL_RAFT_DATA_READ_INDEX_TYPE:ReadOnlySafe}

### rpc request timeout, default 5 seconds
# nacos.core.protocol.raft.data.rpc_request_timeout_ms=${NACOS_CORE_PROTOCOL_RAFT_DATA_RPC_REQUEST_TIMEOUT_MS:5000}

#*************** Distro Related Configurations ***************#
### Distro data sync delay time, when sync task delayed, task will be merged for same data key. Default 1 second.
# nacos.core.protocol.distro.data.sync.delayMs=${NACOS_CORE_PROTOCOL_DISTRO_DATA_SYNC_DELAYMS:1000}

### Distro data sync timeout for one sync data, default 3 seconds.
# nacos.core.protocol.distro.data.sync.timeoutMs=${NACOS_CORE_PROTOCOL_DISTRO_DATA_SYNC_TIMEOUTMS:3000}

### Distro data sync retry delay time when sync data failed or timeout, same behavior with delayMs, default 3 seconds.
# nacos.core.protocol.distro.data.sync.retryDelayMs=${NACOS_CORE_PROTOCOL_DISTRO_DATA_SYNC_RETRYDELAYMS:3000}

### Distro data verify interval time, verify synced data whether expired for a interval. Default 5 seconds.
# nacos.core.protocol.distro.data.verify.intervalMs=${NACOS_CORE_PROTOCOL_DISTRO_DATA_VERIFY_INTERVALMS:5000}

### Distro data verify timeout for one verify, default 3 seconds.
# nacos.core.protocol.distro.data.verify.timeoutMs=${NACOS_CORE_PROTOCOL_DISTRO_DATA_VERIFY_TIMEOUTMS:3000}

### Distro data load retry delay when load snapshot data failed, default 30 seconds.
# nacos.core.protocol.distro.data.load.retryDelayMs=${NACOS_CORE_PROTOCOL_DISTRO_DATA_LOAD_RETRYDELAYMS:30000}

### enable to support prometheus service discovery
# nacos.prometheus.metrics.enabled=${NACOS_PROMETHEUS_METRICS_ENABLED:true}

#*************** Grpc Configurations ***************#
### sdk grpc(between nacos server and client) configuration
### Sets the maximum message size allowed to be received on the server.
# nacos.remote.server.grpc.sdk.max-inbound-message-size=${NACOS_REMOTE_SERVER_GRPC_SDK_MAX-INBOUND-MESSAGE-SIZE:10485760}

### Sets the time(milliseconds) without read activity before sending a keepalive ping. The typical default is two hours.
# nacos.remote.server.grpc.sdk.keep-alive-time=${NACOS_REMOTE_SERVER_GRPC_SDK_KEEP-ALIVE-TIME:7200000}

### Sets a time(milliseconds) waiting for read activity after sending a keepalive ping. Defaults to 20 seconds.
# nacos.remote.server.grpc.sdk.keep-alive-timeout=${NACOS_REMOTE_SERVER_GRPC_SDK_KEEP-ALIVE-TIMEOUT:20000}

### Sets a time(milliseconds) that specify the most aggressive keep-alive time clients are permitted to configure. The typical default is 5 minutes
# nacos.remote.server.grpc.sdk.permit-keep-alive-time=${NACOS_REMOTE_SERVER_GRPC_SDK_PERMIT-KEEP-ALIVE-TIME:300000}

### cluster grpc(inside the nacos server) configuration
# nacos.remote.server.grpc.cluster.max-inbound-message-size=${NACOS_REMOTE_SERVER_GRPC_CLUSTER_MAX-INBOUND-MESSAGE-SIZE:10485760}

### Sets the time(milliseconds) without read activity before sending a keepalive ping. The typical default is two hours.
# nacos.remote.server.grpc.cluster.keep-alive-time=${NACOS_REMOTE_SERVER_GRPC_CLUSTER_KEEP-ALIVE-TIME:7200000}

### Sets a time(milliseconds) waiting for read activity after sending a keepalive ping. Defaults to 20 seconds.
# nacos.remote.server.grpc.cluster.keep-alive-timeout=${NACOS_REMOTE_SERVER_GRPC_CLUSTER_KEEP-ALIVE-TIMEOUT:20000}

### Sets a time(milliseconds) that specify the most aggressive keep-alive time clients are permitted to configure. The typical default is 5 minutes
# nacos.remote.server.grpc.cluster.permit-keep-alive-time=${NACOS_REMOTE_SERVER_GRPC_CLUSTER_PERMIT-KEEP-ALIVE-TIME:300000}
